package com.eduadmin.mapper;

import com.eduadmin.entity.Course;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CourseMapper {
    //hgm 批量导入课程
    int insertCourses(List<Course> courses);
    //hgm   根据名字查课程
    Course selectCourseByName(String courseChName);
    //hgm 获取所有课程
    List<Course> selectCourses();
    // zlc 根据学科英文名称获取学科对象信息
    Course getCourseByCourseEnName(String courseEnName);

//    int deleteByPrimaryKey(Integer courseId);
//    int insertSelective(Course record);

//    Course selectByPrimaryKey(Integer courseId);

//    int updateByPrimaryKeySelective(Course record);

//    int updateByPrimaryKey(Course record);
}